<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
		<!-- 一定先引入jq -->
		<script src="js/jquery-1.10.1.js"></script>
		<script src="js/bootstrap.js"></script>
		<style>
			div {
				height: 100px;
				background-color: blue;
			}
			@media screen and (max-width:768px) {
				div {
					width: 300px;
				}
			}
			@media screen and (min-width:768px) {
				div {
					width: 500px;
				}
			}
		</style>
	</head>
	<body>
		<div>
			<button class="btn btn-primary" data-toggle="modal" data-target="#myModal">Modal</button>
		</div>
		<div class="modal fade" tabindex="-1" id="myModal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title">标题！</h5>
						<button class="close" data-dismiss="modal">&times;</button>
					</div>
					<div class="modal-body">
						<p>内容内容内容内容内容内容。</p>
					</div>
					<div class="modal-footer">
						<button class="btn btn-secondary" data-dismiss="modal">取消</button>
						<button class="btn btn-primary">确定</button>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
